let wait = setTimeout(function(){
    console.log("Hi, 1");
}, 2000);

function sayHi(){
    console.log("Hi, 2");
}

sayHi()

//let wait_ = setTimeout(sayHi, 2000);


let count = 1;
function print(){
    console.log("exec[count: " + count + "]");
    count++;
    if(count === 10)
        clearInterval(inter_wait);
}

var inter_wait = setInterval(print, 1000);





